import urllib2,sys
import urllib,sys
	
def getFullPage(facultyName, schoolName, restrictBySchool):
	if(restrictBySchool == True):
		url = "http://interaction.lille.inria.fr/~roussel/projects/scholarindex/index.cgi?btnG=Search+Scholar&as_sauthors="+urllib.quote(facultyName)+"&as_allsubj=all&as_q="+urllib.quote(schoolName)+"&as_oq=&as_eq=&as_publication=&as_ylo=&as_yhi=&x_minr=&as_occt=any&hl=en&lr="
	else:
		url = "http://interaction.lille.inria.fr/~roussel/projects/scholarindex/index.cgi?btnG=Search+Scholar&as_sauthors="+urllib.quote(facultyName)+"&as_allsubj=all&as_q=&as_oq=&as_eq=&as_publication=&as_ylo=&as_yhi=&x_minr=&as_occt=any&hl=en&lr=";

	return urllib2.urlopen(url).read()